package base.process_control;

public class Loop {
    public static void main(String[] args) {
        // while
        int i = 1;
        while (i <= 5) {
            System.out.println(i++);
        }
        // do-while
        int j = 9;
        do {
            j += 2;
        } while (j < 10);
        System.out.println(j);
        // for
        for (int k = 0; k < 5; k++) {
            System.out.println("k=" + k);
        }
        // jump
        for (int l = 0; l < 10; l++) {
            if (l % 2 == 0) {
                continue;
            }
            System.out.println("l=" + l);
            if (l >= 6) {
                break;
            }
        }
    }
}
